--[[
**********************************************************************************************************
		NO WHERE NEAR FINISHED!!!
		I was trying to get the zpm and ancient gun choices client side...
		maybe someone else has a better idea ??
**********************************************************************************************************		
]]--



local function NewPanel(Panel)
	if (LocalPlayer():IsAdmin() || LocalPlayer():IsSuperAdmin()) then
	-- ZPM Spawner
	Panel:Help("ZPM Spawner")
		--Which ZPM to spawn ?
		--local list = vgui.Create("DMultiChoice", Panel )
		--list:AddChoice("Option 1")
		--list:AddChoice("Option 2")
	Panel:Help("Which ZPM to spawn ?")
	local ZPMList = Panel:MultiChoice("")
	ZPMList:AddChoice("Normal ZPM")
	ZPMList:AddChoice("ZPM Mk2")
	ZPMList:SetConVar("Stargate_MckaysPack_ZPMSpawner_ZPM")
	
	--local ZPMLimit = Panel:
	end
	Panel:Help("Not sure what to put here really...")
	Panel:Help("Most options are Admin only, but you should be able to choose which gun model to have ;p")
		
	--Ancient Gun Model
	Panel:Help("Which ancient gun model do you want ?")
	local ModelList = Panel:MultiChoice("")
	ModelList:AddChoice("Ancient Gun")
	ModelList:AddChoice("Ancient Stunner")
	function ModelList:OnSelect(i,v,d)
		datastream.StreamToServer( "AncientGun", { ["key"] = i } )
	end
end

hook.Add("AddToolMenuTabs","Stargate.Hook.AddMckaysPackTab",
	function()
		--spawnmenu.AddToolMenuOption("Stargate","Config","Mckays Pack Config","Mckays Pack Config","","",NewPanel)
	end
)

local ply = LocalPlayer()

function ply:GetAncientWeapon()
	return self:GetNWInt("AncientWeapon") or 1
end